#include "IRS.h"
#include <iostream>

using namespace std;


int main(int argc,const char * argv[]){
    Color_Image* in = Image::openFromFile("/home/marcel/alfa06.bmp");
    Binary_Image* neuron = (Binary_Image*)in->convert(Image::BINARY,0);
    neuron->invert();


    PositionMap* crossmap = new PositionMap(neuron->getHeight(),neuron->getWidth());
    Grey_Image* rotuled = neuronal_labelling(neuron,crossmap);


    Color_Image* out = (Color_Image*)rotuled->convert(Image::COLOR,1);
    out->saveToFile("/home/marcel/alfa06rotuled.png","png");


}
